<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>92Play后台管理</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/managercss.css" />
<style type="text/css">
<!--
body {
	margin-left: 5px;
	margin-top: 5px;
	margin-right: 5px;
	background:#EFEFEF;
}
-->
</style>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.form.js"></script>
<script type="text/javascript">
	var ctp = '<%=request.getContextPath() %>';
	$(function(){
		$("#add").click(function(){
				
				var date = $("#companyForm").formSerialize();
				
				$.ajax({
					url:ctp+"/admin/adminUser/add",
					data:date,
					type:"POST",
					success:function(flag){
						if(flag=='1'){
							alert("添加成功!");
							//window.location.href= ctp+"/admin/company";
							 parent.location.reload();
						}else{
							alert("添加失败!");
						}
					}
				});
				return;
			
		});
	});
</script>
</head>
<body>
<div class="information">
	<div class="list">
		<form method="post" id="companyForm">
		<div class="noselect">
			<ul>
				<li style="width: 100px;text-align: right;">CP账号：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="username" id="username" value="" size="20"></input>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">密码：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="pwd" id="pwd" value="" size="20"></input>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">权限：</li>
				<li style="width: 300px;text-align: left;">
					<select name="power">
						<option value="0">CP合作商</option>
						<option value="1">管理员</option>
					</select>
				</li>
			</ul>
			<!-- 
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">CP名称：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="cpname" id="cpname" size="20">
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">CP简介：</li>
				<li style="width: 300px;text-align: left;">
					<textarea rows="5" cols="30" name="cpmemo" id="cpmemo"></textarea>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">业务线：</li>
				<li style="width: 300px;text-align: left;">
					<select name="bussiness">
						<option value="SMS">SMS</option>
						<option value="MMS">MMS</option>
						<option value="IVR">IVR</option>
						<option value="视频基地">视频基地</option>
						<option value="百宝箱游戏">百宝箱游戏</option>
						<option value="G+游戏">G+游戏</option>
						<option value="动漫基地">动漫基地</option>
						<option value="阅读基地">阅读基地</option>
						<option value="MM基地">MM基地</option>
						<option value="MDO业务">MDO业务</option>
					</select>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">分成比率：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="cpercent" id="cpercent">%
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">结算周期：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="cpcheck" id="cpcheck">
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">扣量比率：</li>
				<li style="width: 300px;text-align: left;">
					<input type="text" name="cppercent" id="cppercent" size="20">%
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">合作SP渠道：</li>
				<li style="width: 300px;text-align: left;">
					<textarea rows="5" cols="30" name="spchannel" id="spchannel"></textarea>
				</li>
			</ul>
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">合作状态：</li>
				<li style="width: 300px;text-align: left;">
					<select name="cpstatus">
						<option value="1">有效</option>
						<option value="0">无效</option>
					</select>
				</li>
			</ul> -->
			<div class="clear"></div>
			<ul>
				<li style="width: 100px;text-align: right;">&nbsp;</li>
				<li style="width: 300px;text-align: left;">
					<input type="button" id="add" value="添加" /> 
				</li>
			</ul>
			<div class="clear"></div>
		</div>
		</form>
	</div>
</div>
</body>
</html>